package controller;

import java.util.ArrayList;
import java.util.List;

import database.DatabaseManager;
import database.DatabaseManager.Memento;

public class FitnessClub{
	
	private String	name;
	private String	accountNumber;
	private String	openingTime;
	private String	closingTime;
	
	
	private List<DatabaseManager.Memento> savedStates;
	
	public FitnessClub( String name, String accountNumber, String openingTime, String closingTime ) {
		this.name = name;
		this.accountNumber = accountNumber;
		this.openingTime = openingTime;
		this.closingTime = closingTime;
		
		savedStates = new ArrayList<DatabaseManager.Memento>();
	}
	
	public void addMemento(Memento memento){
		savedStates.add( memento );
	}
	
	public List<DatabaseManager.Memento> getMementos(){
		return savedStates;
	}
	
	
	public FitnessClub() {
	}
	
	
	public String getName() {
		return name;
	}
	
	
	public String getAccountNumber() {
		return accountNumber;
	}
	
	
	public String getOpeningTime() {
		return openingTime;
	}
	
	
	public String getClosingTime() {
		return closingTime;
	}
	
}
